<?php

namespace Popshouse\SiteBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class BookingForm extends AbstractType
{
    
	public function buildForm(FormBuilder $builder, array $options)
    {
    	$builder->add('name');
        $builder->add('tel', 'text', array(
            'required' => false,
        ));
        $builder->add('mail');
        $builder->add('nbRooms');
        $builder->add('nbGuests');
        $builder->add('dateStart');
        $builder->add('dateEnd');
        $builder->add('info', 'textarea', array(
            'required' => false,
        ));

    }

    public function getDefaultOptions(array $options)
    {
        return array(
            'data_class' => 'Popshouse\SiteBundle\Entity\Reservation',
        );
    }


}